package com.ruoyi.purchase.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 进货单管理对象 t_purchase_list
 * 
 * @author zxr
 * @date 2023-06-26
 */
public class PurchaseList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货单id，主键 */
    @Excel(name = "进货单id，主键")
    private Integer purchaseListId;

    /** 进货单号 */
    @Excel(name = "进货单号")
    private String purchaseNumber;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private Double amountPaid;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private Double amountPayable;

    /** 收货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 状态(0未采购1采购中2采购完成) */
    @Excel(name = "状态(0未采购1采购中2采购完成)")
    private Integer state;

    /** 供应商id，外键 */
    @Excel(name = "供应商id，外键")
    private Integer supplierId;

    /** 用户id，外键 */
    @Excel(name = "用户id，外键")
    private Integer userId;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setPurchaseListId(Integer purchaseListId) 
    {
        this.purchaseListId = purchaseListId;
    }

    public Integer getPurchaseListId() 
    {
        return purchaseListId;
    }
    public void setPurchaseNumber(String purchaseNumber) 
    {
        this.purchaseNumber = purchaseNumber;
    }

    public String getPurchaseNumber() 
    {
        return purchaseNumber;
    }
    public void setAmountPaid(Double amountPaid) 
    {
        this.amountPaid = amountPaid;
    }

    public Double getAmountPaid() 
    {
        return amountPaid;
    }
    public void setAmountPayable(Double amountPayable) 
    {
        this.amountPayable = amountPayable;
    }

    public Double getAmountPayable() 
    {
        return amountPayable;
    }
    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setSupplierId(Integer supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Integer getSupplierId() 
    {
        return supplierId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseListId", getPurchaseListId())
            .append("purchaseNumber", getPurchaseNumber())
            .append("amountPaid", getAmountPaid())
            .append("amountPayable", getAmountPayable())
            .append("purchaseDate", getPurchaseDate())
            .append("state", getState())
            .append("supplierId", getSupplierId())
            .append("userId", getUserId())
            .append("remarks", getRemarks())
            .toString();
    }
}
